Release 10.1A: OpenEdge Development:
Open Client Introduction and Programming
Open Client interface naming conventions
ProxyGen uses the following default naming conventions for Open Client interface objects and methods:
- AppObject, SubAppObject, and ProcObject class names — You must specify the name for each AppObject and SubAppObject class. Unless you override it, each ProcObject class name is the r-code filename of the mapped persistent procedure, matching the case and spelling without the extension. ProxyGen also performs any automatic name conversions. See the "Automatic name conversions" section.
Each object must be uniquely named.
For Java and .NET proxies, these object names are used as the actual class names.
For Web services, these object names are used according to the conventions and programming language requirements of the Web service client toolkit that builds the client proxies from the WSDL file. For more information on how Web service client platforms use these object names, see the sections on sample Web service client platforms in OpenEdge Development: Web Services .
- Methods in an AppObject or SubAppObject that execute an external, non-persistent AppServer procedure — The method name is the procedure filename without the extension. Method names are case sensitive. ProxyGen also performs any automatic name conversions. See the "Automatic name conversions" section.
- Methods in a ProcObject that execute an internal procedure or user-defined function defined in the persistent procedure — The method name matches the corresponding 4GL internal procedure and user-defined function names found in the procedure file. Method names are case sensitive. ProxyGen also performs any automatic name conversions. See the "Automatic name conversions" section.
- Class factory methods in an AppObject that create a SubAppObject — The method name depends on the type of Open Client, where
SubAppObjectis the SubAppObject name:- Class factory methods in an AppObject or SubAppObject that create a ProcObject — The method name depends on the type of Open Client, where
ProcObjectis the ProcObject name:
- Java proxy — create
PO_ProcObjectNote: On Windows platforms, the case of the r-code filename is affected by the name entered during 4GL compilation. For example, suppose you execute the following- .NET proxy and Web service definition — Create
PO_ProcObjectCOMPILEstatement in the Progress Procedure Editor:COMPILE aBCdEf.p SAVE.
The generated r-code filename isaBCdEf.r, even thoughAbcdef.pmight be the actual procedure filename. Thus, the generated method name isaBCdEforCreatePO_aBCdEffor a persistent procedure.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |